﻿using System;
using System.Collections.Generic;
using System.Text;

namespace C11_Ex02_1
{
    public class BoardPosition
    {
        private int m_Column;
        private int m_Row;

        public BoardPosition(int i_Row, int i_Column)
        {
            m_Row = i_Row;
            m_Column = i_Column;
        }

        public int Column
        {
            get { return m_Column; }
            set { m_Column = value; }
        }

        public int Row
        {
            get { return m_Row; }
            set { m_Row = value; }
        }

        public bool ComparePositions(BoardPosition i_Position)
        {
            return ((m_Row == i_Position.Row) && (m_Column == i_Position.Column));
        }
    }
}
